package ink.feta.task.job;

import org.apache.shardingsphere.elasticjob.api.ShardingContext;
import org.apache.shardingsphere.elasticjob.simple.job.SimpleJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class MyElasticJob implements SimpleJob {
    private static Logger logger = LoggerFactory.getLogger(MyElasticJob.class);

    @Override
    public void execute(ShardingContext context) {
        logger.info("execute [{}],name:[{}] ", context.getShardingItem(), context.getJobName());
    }
}
